package cn.wsalix.admin.service;

import java.util.List;

import cn.anlaser.service.CommonService;
import cn.wsalix.admin.entity.AuthData;
import cn.wsalix.admin.form.AuthDataForm;
import cn.wsalix.admin.repository.AuthDataRepository;

public interface AuthDataService extends
		CommonService<AuthDataForm, AuthDataRepository, AuthData> {
	public AuthData findByCodeOne(String code);

	public List<AuthData> findsByCode(String code);
	

	/**
	 * @return
	 * 获取所有角色
	 */
	List<AuthData> findAuthDatas();

	public List<AuthData> findRolesByUserId(Long userId);

}
